package com.hqyj.emb.system.service.Impl;

import com.hqyj.emb.system.dao.Impl.RolePermissionDaoImpl;
import com.hqyj.emb.system.dao.RolePermissionDao;
import com.hqyj.emb.system.model.Permission;
import com.hqyj.emb.system.model.RolePermission;
import com.hqyj.emb.system.service.RolePermissionService;

public class RolePermissionServiceImpl implements RolePermissionService {
    RolePermissionDao rolePermissionDao=new RolePermissionDaoImpl();
    @Override
    public int addRolePermissionByPermissionId(RolePermission rolePermission) {
        return rolePermissionDao.addRolePermissionByPermissionId(rolePermission);
    }

    @Override
    public int deleteRolePermissionByRoleId(int permission) {
        return rolePermissionDao.deleteRolePermissionByRoleId(permission);
    }
}
